    <link href="assets/css/post_show.css" rel="stylesheet">
    <script src="assets/js/post_show.js"></script>
    <script src="assets/js/jquery.autosize-min.js"></script>

    <div class="container">
        <div class="row">
            <div class="span9">
                <div class="hidden" value="<?php echo $post['post_id']; ?>" id="post_id"></div>
                <?php $this->load->view('post_show/post_topic', $post); ?>
                
                <div class="row">
                    <div id="repost_list" value="<?php echo $pn; ?>"></div>
                    <!-- load page according to var $pn -->
                    <!--<div id="repost_more" class="btn" href="javascript:void(0);"></div>-->
                    <div class="pagination pull-right">
                        <ul>
                        <?php
                            $interval = 5;
                            $half_interval = floor(($interval + 1) / 2);
                            if ($pn != 1) {
                                echo '
                                    <li><a href="post/show/' . $post['post_id'] . '/1">首页</a></li>
                                    <li><a href="post/show/' . $post['post_id'] . '/' . ($pn - 1) . '">上一页</a></li>
                                ';
                            }
                            if ($pages < $interval) {
                                $begin = 1;
                                $end = $pages;
                            } else {
                                if ($pn <= $half_interval) {
                                    $begin = 1;
                                    $end = $interval;
                                } elseif ($pn > ($pages - $half_interval)) {
                                    $begin = $pages - $interval + 1;
                                    $end = $pages;
                                } else {
                                    $begin = $pn - $half_interval + 1;
                                    $end = $pn + $half_interval - 1;
                                }
                            }
                            for ($i = $begin; $i <= $end; $i++) {
                                if ($i == $pn) {
                                    echo '<li class="active"><span>' . $i . '</span></li>';
                                } else {
                                    echo '<li><a href="post/show/' . $post['post_id'] . '/' . $i . '">' . $i . '</a></li>';
                                }
                            }
                            if ($pn != $pages) {
                                echo '
                                    <li><a href="post/show/' . $post['post_id'] . '/' . ($pn + 1) . '">下一页</a></li>
                                    <li><a href="post/show/' . $post['post_id'] . '/' . $pages . '">尾页</a></li>
                                ';
                            }
                        ?>
                        </ul>
                    </div>
                </div>

                <?php $this->load->view('post_show/repost_do', array('post_id' => $post['post_id'])); ?>

            </div>
            <?php $this->load->view('sidebar/sidebar'); ?>
        </div>
    </div>
    <?php $this->load->view('post_show/post_photo_carousel'); ?>
    <!-- Baidu Button BEGIN -->
    <!--
    <script type="text/javascript" id="bdshare_js" data="type=slide&amp;img=6&amp;mini=1&amp;pos=left&amp;uid=796106" ></script>
    <script type="text/javascript" id="bdshell_js"></script>
    <script type="text/javascript">
        var bds_config={"bdTop":75};
        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
    </script>
    -->
    <!-- Baidu Button END -->